package com.forenow.demo.demo21;

public class CustomException extends Exception {
    public CustomException() {

    }
    //子类当中自定义的构造器主要想调用父类中的构造器主要想打印异常的详细信息
    public CustomException(String s) {
        super(s); //子类想用父类的构造器得用super
    }

    public static void main(String[] args) {


    }
}